<?php
/*
 * Copyright (c) 2017-2025 Tencent. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
namespace TencentCloud\Waf\V20180125\Models;
use TencentCloud\Common\AbstractModel;

/**
 * DescribeAttackOverview response structure.
 *
 * @method integer getAccessCount() Obtain Total number of access requests
 * @method void setAccessCount(integer $AccessCount) Set Total number of access requests
 * @method integer getAttackCount() Obtain Total web attacks
 * @method void setAttackCount(integer $AttackCount) Set Total web attacks
 * @method integer getACLCount() Obtain Total number of access controls
 * @method void setACLCount(integer $ACLCount) Set Total number of access controls
 * @method integer getCCCount() Obtain Total CC attacks
 * @method void setCCCount(integer $CCCount) Set Total CC attacks
 * @method integer getBotCount() Obtain Total bot attack count
 * @method void setBotCount(integer $BotCount) Set Total bot attack count
 * @method integer getApiAssetsCount() Obtain Total API assets
 * @method void setApiAssetsCount(integer $ApiAssetsCount) Set Total API assets
 * @method integer getApiRiskEventCount() Obtain Number of API risk events

Note: This field may return null, indicating that no valid values can be obtained.
 * @method void setApiRiskEventCount(integer $ApiRiskEventCount) Set Number of API risk events

Note: This field may return null, indicating that no valid values can be obtained.
 * @method integer getIPBlackCount() Obtain Total number of blocklisted IP addresses.
Note: This field may return null, indicating that no valid values can be obtained.
 * @method void setIPBlackCount(integer $IPBlackCount) Set Total number of blocklisted IP addresses.
Note: This field may return null, indicating that no valid values can be obtained.
 * @method integer getTamperCount() Obtain Total number of tamper-proof items

Note: This field may return null, indicating that no valid values can be obtained.
 * @method void setTamperCount(integer $TamperCount) Set Total number of tamper-proof items

Note: This field may return null, indicating that no valid values can be obtained.
 * @method integer getLeakCount() Obtain Total number of information leaks

Note: This field may return null, indicating that no valid values can be obtained.
 * @method void setLeakCount(integer $LeakCount) Set Total number of information leaks

Note: This field may return null, indicating that no valid values can be obtained.
 * @method integer getApiRiskEventCircleCount() Obtain Weekly proportion of API risk events.

Note: This field may return null, indicating that no valid values can be obtained.
 * @method void setApiRiskEventCircleCount(integer $ApiRiskEventCircleCount) Set Weekly proportion of API risk events.

Note: This field may return null, indicating that no valid values can be obtained.
 * @method string getRequestId() Obtain The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
 * @method void setRequestId(string $RequestId) Set The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
 */
class DescribeAttackOverviewResponse extends AbstractModel
{
    /**
     * @var integer Total number of access requests
     */
    public $AccessCount;

    /**
     * @var integer Total web attacks
     */
    public $AttackCount;

    /**
     * @var integer Total number of access controls
     */
    public $ACLCount;

    /**
     * @var integer Total CC attacks
     */
    public $CCCount;

    /**
     * @var integer Total bot attack count
     */
    public $BotCount;

    /**
     * @var integer Total API assets
     */
    public $ApiAssetsCount;

    /**
     * @var integer Number of API risk events

Note: This field may return null, indicating that no valid values can be obtained.
     */
    public $ApiRiskEventCount;

    /**
     * @var integer Total number of blocklisted IP addresses.
Note: This field may return null, indicating that no valid values can be obtained.
     */
    public $IPBlackCount;

    /**
     * @var integer Total number of tamper-proof items

Note: This field may return null, indicating that no valid values can be obtained.
     */
    public $TamperCount;

    /**
     * @var integer Total number of information leaks

Note: This field may return null, indicating that no valid values can be obtained.
     */
    public $LeakCount;

    /**
     * @var integer Weekly proportion of API risk events.

Note: This field may return null, indicating that no valid values can be obtained.
     */
    public $ApiRiskEventCircleCount;

    /**
     * @var string The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
     */
    public $RequestId;

    /**
     * @param integer $AccessCount Total number of access requests
     * @param integer $AttackCount Total web attacks
     * @param integer $ACLCount Total number of access controls
     * @param integer $CCCount Total CC attacks
     * @param integer $BotCount Total bot attack count
     * @param integer $ApiAssetsCount Total API assets
     * @param integer $ApiRiskEventCount Number of API risk events

Note: This field may return null, indicating that no valid values can be obtained.
     * @param integer $IPBlackCount Total number of blocklisted IP addresses.
Note: This field may return null, indicating that no valid values can be obtained.
     * @param integer $TamperCount Total number of tamper-proof items

Note: This field may return null, indicating that no valid values can be obtained.
     * @param integer $LeakCount Total number of information leaks

Note: This field may return null, indicating that no valid values can be obtained.
     * @param integer $ApiRiskEventCircleCount Weekly proportion of API risk events.

Note: This field may return null, indicating that no valid values can be obtained.
     * @param string $RequestId The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
     */
    function __construct()
    {

    }

    /**
     * For internal only. DO NOT USE IT.
     */
    public function deserialize($param)
    {
        if ($param === null) {
            return;
        }
        if (array_key_exists("AccessCount",$param) and $param["AccessCount"] !== null) {
            $this->AccessCount = $param["AccessCount"];
        }

        if (array_key_exists("AttackCount",$param) and $param["AttackCount"] !== null) {
            $this->AttackCount = $param["AttackCount"];
        }

        if (array_key_exists("ACLCount",$param) and $param["ACLCount"] !== null) {
            $this->ACLCount = $param["ACLCount"];
        }

        if (array_key_exists("CCCount",$param) and $param["CCCount"] !== null) {
            $this->CCCount = $param["CCCount"];
        }

        if (array_key_exists("BotCount",$param) and $param["BotCount"] !== null) {
            $this->BotCount = $param["BotCount"];
        }

        if (array_key_exists("ApiAssetsCount",$param) and $param["ApiAssetsCount"] !== null) {
            $this->ApiAssetsCount = $param["ApiAssetsCount"];
        }

        if (array_key_exists("ApiRiskEventCount",$param) and $param["ApiRiskEventCount"] !== null) {
            $this->ApiRiskEventCount = $param["ApiRiskEventCount"];
        }

        if (array_key_exists("IPBlackCount",$param) and $param["IPBlackCount"] !== null) {
            $this->IPBlackCount = $param["IPBlackCount"];
        }

        if (array_key_exists("TamperCount",$param) and $param["TamperCount"] !== null) {
            $this->TamperCount = $param["TamperCount"];
        }

        if (array_key_exists("LeakCount",$param) and $param["LeakCount"] !== null) {
            $this->LeakCount = $param["LeakCount"];
        }

        if (array_key_exists("ApiRiskEventCircleCount",$param) and $param["ApiRiskEventCircleCount"] !== null) {
            $this->ApiRiskEventCircleCount = $param["ApiRiskEventCircleCount"];
        }

        if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
            $this->RequestId = $param["RequestId"];
        }
    }
}
